package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Coupon entity. @author MyEclipse Persistence Tools
 */

public class Coupon implements java.io.Serializable {

	// Fields

	private Long id;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Timestamp beginDate;
	private Timestamp endDate;
	private Double endPrice;
	private String introduction;
	private Boolean isEnabled;
	private Boolean isExchange;
	private String name;
	private Integer point;
	private String prefix;
	private Integer priceOperator;
	private Double priceValue;
	private Double startPrice;
	private Set couponCodes = new HashSet(0);
	private Set promotionCoupons = new HashSet(0);
	private Set orderCoupons = new HashSet(0);

	// Constructors

	/** default constructor */
	public Coupon() {
	}

	/** minimal constructor */
	public Coupon(Timestamp createDate, Timestamp modifyDate,
			Boolean isEnabled, Boolean isExchange, String name, String prefix,
			Integer priceOperator) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.isEnabled = isEnabled;
		this.isExchange = isExchange;
		this.name = name;
		this.prefix = prefix;
		this.priceOperator = priceOperator;
	}

	/** full constructor */
	public Coupon(Timestamp createDate, Timestamp modifyDate,
			Timestamp beginDate, Timestamp endDate, Double endPrice,
			String introduction, Boolean isEnabled, Boolean isExchange,
			String name, Integer point, String prefix, Integer priceOperator,
			Double priceValue, Double startPrice, Set couponCodes,
			Set promotionCoupons, Set orderCoupons) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.endPrice = endPrice;
		this.introduction = introduction;
		this.isEnabled = isEnabled;
		this.isExchange = isExchange;
		this.name = name;
		this.point = point;
		this.prefix = prefix;
		this.priceOperator = priceOperator;
		this.priceValue = priceValue;
		this.startPrice = startPrice;
		this.couponCodes = couponCodes;
		this.promotionCoupons = promotionCoupons;
		this.orderCoupons = orderCoupons;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Timestamp getBeginDate() {
		return this.beginDate;
	}

	public void setBeginDate(Timestamp beginDate) {
		this.beginDate = beginDate;
	}

	public Timestamp getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	public Double getEndPrice() {
		return this.endPrice;
	}

	public void setEndPrice(Double endPrice) {
		this.endPrice = endPrice;
	}

	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Boolean getIsEnabled() {
		return this.isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

	public Boolean getIsExchange() {
		return this.isExchange;
	}

	public void setIsExchange(Boolean isExchange) {
		this.isExchange = isExchange;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPoint() {
		return this.point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public String getPrefix() {
		return this.prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public Integer getPriceOperator() {
		return this.priceOperator;
	}

	public void setPriceOperator(Integer priceOperator) {
		this.priceOperator = priceOperator;
	}

	public Double getPriceValue() {
		return this.priceValue;
	}

	public void setPriceValue(Double priceValue) {
		this.priceValue = priceValue;
	}

	public Double getStartPrice() {
		return this.startPrice;
	}

	public void setStartPrice(Double startPrice) {
		this.startPrice = startPrice;
	}

	public Set getCouponCodes() {
		return this.couponCodes;
	}

	public void setCouponCodes(Set couponCodes) {
		this.couponCodes = couponCodes;
	}

	public Set getPromotionCoupons() {
		return this.promotionCoupons;
	}

	public void setPromotionCoupons(Set promotionCoupons) {
		this.promotionCoupons = promotionCoupons;
	}

	public Set getOrderCoupons() {
		return this.orderCoupons;
	}

	public void setOrderCoupons(Set orderCoupons) {
		this.orderCoupons = orderCoupons;
	}

}